package com.czz.manage.client;

import com.czz.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @ClassName: VodClient
 * @Author Czz
 * @Date 2020/2/1
 * @Time 18:15
 **/
@Component
@FeignClient(value = "education-vod")
public interface VodClient {

    @DeleteMapping(value = "/teacher/video/{videoId}")
    R deleteVodById(@PathVariable("videoId") String videoId);

    @DeleteMapping(value = "/teacher/video/delete-batch")
    R deleteVodBatch(@RequestBody List<String> videoList);
}
